﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;


namespace AbpDemo
{
    /// <summary>
    /// 数据库实体通用字段
    /// </summary>
    public class BaseIntEntity
    {
        public int Id { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreateTime { get; set; }
        /// <summary>
        /// 更新时间
        /// </summary>
        public DateTime UpdateTime { get; set; }
        /// <summary>
        /// 创建
        /// </summary>
        public int CreateBy { get; set; }
        /// <summary>
        ///修改者
        /// </summary>
        public int UpdateBy { get; set; }
        /// <summary>
        /// 1正常 0删除
        /// </summary>
        public Int16 Status { get; set; }
    }
    /// <summary>
    /// 通用guid
    /// </summary>
    public class BaseGuidEntity
    {
        public Guid Id { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreateTime { get; set; }
        /// <summary>
        /// 更新时间
        /// </summary>
        public DateTime UpdateTime { get; set; }
        /// <summary>
        /// 创建
        /// </summary>
        public int CreateBy { get; set; }
        /// <summary>
        ///修改者
        /// </summary>
        public int UpdateBy { get; set; }
        /// <summary>
        /// 1正常 0删除
        /// </summary>
        public Int16 Status { get; set; }

        public void SetGeneratorId(Guid id)
        {
            Id = id;
        }
    }
}
